package com.aptemo.webetek.client.events;

import com.google.gwt.event.shared.GwtEvent;

public class TeamAddedEvent
		extends GwtEvent<TeamUpdatedHandler>
{
	public static GwtEvent.Type<TeamUpdatedHandler>	TYPE	= new GwtEvent.Type<TeamUpdatedHandler>();
	private String									id;

	public TeamAddedEvent(String id)
	{
		this.id = id;
	}

	@Override
	public GwtEvent.Type<TeamUpdatedHandler> getAssociatedType()
	{
		return TYPE;
	}

	@Override
	protected void dispatch(TeamUpdatedHandler handler)
	{
		handler.onTeamUpdated(id);
	}
}
